/*正式环境*/
/*var authurl = "http://114.55.90.31:81/ngbuc/";
var mallurl = "http://114.55.90.31:81/ngbmall/";
var mallorderurl = "http://114.55.90.31:81/ngbmallorder/";*/
/*测试环境*/
var wxoperatorurl ="http://inner.test.shuwang.info/operator/operator/";
var wxconfigurl ="http://ddsorder.test.shuwang.info/weixinmp/";
var authurl='http://inner.test.shuwang.info/mall/usercenter/';
var ucurl='http://inner.test.shuwang.info/mall/usercenter/';
var mallurl = "http://inner.test.shuwang.info/mall/mall/";
var mallorderurl = "http://inner.test.shuwang.info/mall/mallorder/";


var prjoct_name = "wxapp";
var uploadUrl = "http://sfcommon.test.shuwang.info/fileupload/upload/1010";
var template_viewurl = "tpls";
var login_viewurl = "tpls";
// topbar
var topbars =
    [
        {
            name: "管理员",
            ui: "manager.list"
        },
        {
            name: "用户中心",
            ui: "usercenter.useradd"
        },
        //{
        //    name: "商城",
        //    ui: "mall.shoplist"
        //},
        //{
        //    name: "运营中心",
        //    ui: 'operator.list'
        //}
    ];
//operator
var manager_viewurl = "manager/tpls";
var manager_sidebars =
    [
        {
            name: "管理员管理",
            ui: [
                {
                    name: "管理员",
                    sref: "manager.list"
                },
                {
                    name: "添加管理员",
                    sref: "manager.add"
                }
            ]
        }
    ];

//usercenter
var usercenter_viewurl = "usercenter/tpls";
var usercenter_sidebars =
    [
        {
            name: "用户管理",
            ui: [
                {
                    name: "用户列表",
                    sref: "usercenter.user"
                },
                {
                    name: "添加用户",
                    sref: "usercenter.useradd"
                },
                {
                    name: "商户审核",
                    sref: "usercenter.usermerchant"
                }
            ]
        }
    ];
//mall
var mall_viewurl = "mall/tpls";
var mall_sidebars =
    [
        {
            name: "分类管理",
            ui: [
                {
                    name: "商品分类列表",
                    sref: "mall.catagory"
                },
                {
                    name: "店铺分类列表",
                    sref: "mall.shoptaglist"
                },
                {
                    name: "添加商品分类",
                    sref: "mall.catagory_add"
                }
                ,
                {
                    name: "添加店铺分类",
                    sref: "mall.shoptag_add"
                }
            ]
        },
        {
            name: "商店管理",
            ui: [
                {
                    name: "商店列表",
                    sref: "mall.shoplist"
                },
                {
                    name: "导入商店",
                    sref: "mall.shopimport"
                },
                {
                    name: "添加商店",
                    sref: "mall.shopadd"
                },
                {
                    name: "区域配送",
                    sref: "mall.shopdelivery"
                }
            ]
        },
        {
            name: "商品管理",
            ui: [
                {
                    name: "商品列表",
                    sref: "mall.goodslist"
                },
                {
                    name: "商品导入",
                    sref: "mall.goodsimport"
                },
                {
                    name: "商品sku导入",
                    sref: "mall.goodsskuimport"
                },
                {
                    name: "添加商品",
                    sref: "mall.goodsadd"
                }

            ]
        },
        {
            name: "商品分组",
            ui: [
                {
                    name: "分组列表",
                    sref: "mall.shopgroup"
                },
                {
                    name: "分组导入",
                    sref: "mall.shopgroupimport"
                },
                {
                    name: "添加分组",
                    sref: "mall.shopgroupadd"
                }
            ]
        },
        {
            name: "订单管理",
            ui: [
                {
                    name: "订单查询",
                    sref: "mall.order"
                },
                {
                    name: "发货订单",
                    sref: "mall.ordersend"
                }
            ]
        }
    ];
//preferential
var preferential_viewurl = "preferential/tpls";
var preferential_sidebars=
    [
        {
            name:"优惠券管理",
            ui:
                [
                    {
                        name:"优惠券列表",
                        sref:"preferential.preferential"
                    },
                    {
                        name:"添加优惠券",
                        sref:"preferential.useradd"
                    },
                ]
        },
        {
            name:"店铺活动管理",
            ui:
                [
                    {
                        name:"活动列表",
                        sref:"preferential.list"
                    },
                    {
                        name:"添加活动",
                        sref:"preferential.add"
                    }
                ]
        },
    ];
//wxplat
var operator_viewurl = "operator/tpls";
var operator_sidebars =
    [
        {
            name: "运营者管理",
            ui: [
                {
                    name: "运营者",
                    sref: "operator.list"
                },
            ]
        }
]